﻿<Window x:Class="CarInfoSpider.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="489" Width="716" ResizeMode="CanMinimize" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="48*" />
            <RowDefinition Height="39*" />
            <RowDefinition Height="363*" />
        </Grid.RowDefinitions>
        <Button Content="Start" Height="23" HorizontalAlignment="Left" Margin="21,12,0,0" Name="btnStart" VerticalAlignment="Top" Width="75" Click="btnStart_Click" />
        <Button Content="Abort" Height="23" HorizontalAlignment="Right" Margin="0,12,517,0" Name="btnAbort" VerticalAlignment="Top" Width="75" Click="btnAbort_Click" Visibility="Hidden" />
        <ProgressBar Grid.Row="1" Height="29" HorizontalAlignment="Left" Margin="21,5,0,0" Name="pbDetails" VerticalAlignment="Top" Width="661" >
            <!--<ProgressBar.Triggers>
                <EventTrigger RoutedEvent="ProgressBar.ValueChanged">
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation
                            Storyboard.TargetName="pbDetails" 
                            Storyboard.TargetProperty="Value"
                             Duration="0:0:5"  />
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </ProgressBar.Triggers>-->
        </ProgressBar>
        <TextBox Grid.Row="2" Height="363" HorizontalAlignment="Left" Name="txtDetails" VerticalAlignment="Top" Width="694" IsReadOnly="True" VerticalScrollBarVisibility="Auto" />
        <TextBox Height="23" Margin="0,12,328,0" Name="txtBrandLimited" VerticalAlignment="Top" TextChanged="txtBrandLimited_TextChanged" Text="2" HorizontalAlignment="Right" Width="58" />
        <Label Content="抓取品牌数量限制:" Height="28" HorizontalAlignment="Left" Margin="193,10,0,0" Name="lbLimit" VerticalAlignment="Top" />
        <Label Content="{Binding Path=Value, ElementName=pbDetails, StringFormat=\{0:F\}%}" Grid.Row="1" Height="28" HorizontalAlignment="Left" Margin="330,6,0,0" Name="lbProgress" VerticalAlignment="Top" />
    </Grid>
</Window>
